<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>  
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">

  <form id="pagerForm" method="post" action="customer/custom/customerlist.html">
	<input type="hidden" name="status" value="${param.status}"/>
	<input type="hidden" name="pageNum" value="${param.pageNum }" />
	<!-- <input type="hidden" name="time" value="${param.time}"/> -->
	<input type="hidden" name="school" value="${param.school}"/>
	<input type="hidden" name="customer_name" value="${param.customer_name}"/>
	<input type="hidden" name="customer_sex" value="${param.customer_sex}"/>
	<input type="hidden" name="profession" value="${param.profession}"/>
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
	<input type="hidden" name="orderField" value="${param.orderField}" />
</form>
 

<div class="pageHeader">
	  <form onsubmit="return navTabSearch(this);" action="customer/custom/customerlist.html" method="post">
	<div class="searchBar">
		
		<table class="searchContent">
			<tr>
				<td>
					姓名：<input type="text" name="customer_name" value="${param.customer_name}"/>
				</td>
				
				<td>
					院校：<input type="text" name="school" value="${param.school}"/>
				</td>
				<td>
					专业：<input type="text" name="profession" value="${param.profession}"/>
				</td>
				<td>
					性别：
					   <select name="customer_sex" >
					     
					      <option value="${param.customer_sex}" style="color:red;" selected>${param.customer_sex}</option>
					      <option value="男">男</option>
					      <option value="女">女</option>
					   </select>
				</td>
				
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索

</button></div></div></li>
				
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="customer/addcustomer.html" target="navTab" rel="customer1"><span>新增客户</span></a></li>
			<li><a class="delete" href="customer/custom/delcustomer-{sid_user}.html" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="customer/custom/editcustomer-{sid_user}.html?" target="navTab" rel="edit"><span>编辑</span></a></li>
			<li class="line">line</li>
			
		</ul>
	</div>
	
	<table class="table" width="100%" layoutH="138" id="com_list">
		<thead>
			
			<tr>
				<th width="26">序号</th>
				<th width="120">姓名</th>
				
				<th width="100">性别</th>
				<th width="100">毕业/就读院校</th>
				<th width="100">专业</th>
				<th width="100">手机号</th>
				<th width="100">邮箱</th>
				<th width="100">录入时间</th>
			</tr>
		</thead>
		<tbody id="userlist">
			
			<c:forEach items="${customerlist }" var="customer" varStatus="s">
		         <tr target="sid_user" rel="${customer.id }">
		      <td width=26>
		      ${s.index} 
		      </td>
		      <td width="80">
		      ${customer.customer_name }
		      </td>
		      <td width="80">
		        ${customer.customer_sex }
		      </td>
		       <td width="100">
		        ${customer.school }
		      </td>
		       <td width="100">
		        ${customer.profession }
		      </td>
		      <td width="100">
		        ${customer.phone }
		      </td>
		      <td width="100">
		        ${customer.email }
		      </td>
		      <td width="100">
		        ${customer.time }
		      </td>
		</tr>
            </c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>${page.allcount }条记录， 共${page.pagecount }页</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${page.allcount }" numPerPage="${page.avgcount }" pageNumShown="6" 

currentPage="${page.page1 }">

	</div>
	
</div>
</div>